package ProjetCorba;

/**
 * Interface definition : Station
 * 
 * @author OpenORB Compiler
 */
public class StationPOATie extends StationPOA
{

    //
    // Private reference to implementation object
    //
    private StationOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public StationPOATie(StationOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public StationPOATie(StationOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public StationOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(StationOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Operation getCasierLibre
     */
    public short getCasierLibre()
    {
        return _tie.getCasierLibre();
    }

    /**
     * Operation genererCode
     */
    public String genererCode(short idCol)
    {
        return _tie.genererCode( idCol);
    }

    /**
     * Operation notificationColis
     */
    public void notificationColis(short numColis)
    {
        _tie.notificationColis( numColis);
    }

    /**
     * Operation setStation
     */
    public void setStation()
    {
        _tie.setStation();
    }

    /**
     * Operation deposerColis
     */
    public void deposerColis(short idCol)
    {
        _tie.deposerColis( idCol);
    }

    /**
     * Operation retirerColis
     */
    public void retirerColis(short idCol)
    {
        _tie.retirerColis( idCol);
    }

}
